package yuan;
import mianji.yuan3;
public class yuan1 {
	yuan3 C;
	static double h;
	double p = 3.14;
	yuan1(double r, double H) {
	h=H;
	C = new yuan3(r);
	}
	public double area() {
	double v = C.getarea()*h;
	return v;
	}
	public double volume() {
	double v = C.getarea()*2+C.r*2*p*h;
	return v;
	}
	public double getarea() {
	double s = C.getarea() + p * C.r * Math.sqrt(h * h + C.r * C.r);
	return s;
	}
	public double getvolume() {
	double v = ( h * C.r*C.r*p)/3;
	return v;
	}

}
